package controllers;

import java.awt.Paint;

import model.IMaster;
import model.Master;
import print.info.Print;
import textfileworker.TextFileWorker;
import database.DataBase;
import database.IDataBase;

public class Luncher {

	public static void main(String[] artgs){
		
		IDataBase base = new DataBase();
		//FillData.fillData(base);
		FillData.fillDataFromFile(base);
		//FillData.writeDbToFile(base);
		Print.printMasters(base.getMasters());
		Autoservice autoservice = new Autoservice(base);
		autoservice.listMasterSortByName();
		IMaster master = new Master("asdf");
		base.addMaster(master);
		autoservice.listMasterSortByName();
	}
}
